package net.xxcl.stuManager.mapper;

import java.util.List;

import net.xxcl.stuManager.pojo.Teacher;

import org.apache.ibatis.session.SqlSession;

public class ClassMapper {
	
	public List<Teacher> selectByTeacherid(Integer teacherid) {
		SqlSession session = DBSessionFactory.getSqlSessionFactory().openSession();
		try {
			return session.selectList("net.xxcl.stuManager.mapper.ClassMapper.selectByTeacherid",teacherid);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
